﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum PedlarType 
    {
        武器,
        材料,
        食物
    }
    class Pedlar : NPC
    {
        private PedlarType pedlarType;
        public PedlarType PedlarType 
        {
            get { return this.pedlarType; }
            set { this.pedlarType = value; }
        }

        public override void Hello()
        {
            Console.WriteLine("我的名字是{0}，我属于{1}，我从事{2}工作，请问需要购买{3}吗？", base.Name, base.Type, this.pedlarType, this.pedlarType);
        }
        public Pedlar(string name, NPCType type, PedlarType pedlarType) : base(name, type)
        {
            this.PedlarType = pedlarType;
        }
    }
}
